<!DOCTYPE html>
<html lang="en">
<base href="__ROOT__">
<head>
    <meta charset="UTF-8">
    <title>我的收藏</title>
    <link rel="stylesheet" href="/public/webapp/css/base.css">
    <link rel="stylesheet" href="/public/webapp/css/myRelease.css">
    <script src="/public/webapp/js/vwp.js"></script>
</head>
<style>
    .slideMenu .slideUl li{
        min-width: 150px;
        font-size: 18px;
    }
      #zulist li{
    	margin-bottom: 0.15rem; 
    }
</style>
<body>
    <div class="odlist">
        <ul id="zulist">
        <div class="top"></div>
        <div class="bot"></div>
        </ul>
    </div><!--http://www.caizhanzhushou.com/index.php?g=Wechat&m=Webmine&a=chuzu-->
     <script type="text/html" id="chuzulist">
     {{ if(!!data){ }}
     {{ for(var i=0;i<data.length;i++){ }}
     {{ var list=data[i].tid[0]; }} 
      <li> 
                <div class="con clear">
                <div class="imgg"><img src="{{=imgzy(list.thumb)||list.headimg}}" alt=""></div>
               <a href="/index.php?g=Wechat&m=webcont&a={{=data[i].model.substring(5,data[i].model.lenght)+"&id="+list.id}}">
                   <div class="text">
                    <div class="t1"><span>{{=new Date((list.time)*1000).Format("MM-dd hh:mm:ss")}}</span><span>{{=list.read}}次</span></div>
                    <div class="t2">{{=list.quyu}}&nbsp;{{=list.bulid}}&nbsp;{{=list.huxing}}</div>
                    <div class="t2">{{=list.mianji}}&nbsp;{{=list.zhuangxiu}}&nbsp;{{=list.yuezu}}&nbsp;{{=list.fenyong}}</div>
                    <div class="t3" {{ if(getCountDown(list.time)=="已失效"){ }} style="color:#666; {{ } }}">{{=getCountDown(list.time)}}</div>
                </div>
                 </a>
                </div>
            </li>
         {{ } }}
         {{ } }}
    </script>
    <script src="/public/webapp/js/jquery-1.11.0.min.js"></script>
    <script src="/public/webapp/js/hammer.min.js"></script>
    <script src="/public/webapp/js/template.js" type="text/javascript" charset="utf-8"></script>
    <script src="/public/webapp/js/common.js"></script>
    <script src="/public/webapp/js/myRelease.js"></script>
    <script>
        var rtUrl=function(add,id){
            var obj={};
            var dadd=((add=="chuzu"||add=="qiuzu")?"zulin":false);
            obj.url="/index.php?g=Wechat&m=Webmine&a="+add;
            obj.delUrl="/index.php?g=Wechat&m=Webmine&a="+(dadd?dadd:add)+"del&id="+id;
            obj.dingUrl="/index.php?g=Wechat&m=Webmine&a="+(dadd?dadd:add)+"ding&id="+id;
            obj.herfUrl="/index.php?g=Wechat&m=webcont&a="+(dadd?dadd:add)+"&id="+id;
            return obj;
        }
        
        var ajax_=function(type,self){
        $(self).addClass("active").siblings().removeClass("active");
         
		$.ajax({
            type: "post",
            url: rtUrl(type).url,
//            url: "http://www.caizhanzhushou.com/index.php?g=Wechat&m=Webmine&a=xinfang",
            "contentType": "application/x-www-form-urlencoded; charset=utf-8",
    //        data:json,
            dataType: "json",
            success: function (data ,textStatus, jqXHR)
            {
                if(data.length>0){
                var html=$("#chuzulist").html(),
                html1=$("#chuzulist2").html(),
                datas={
                    data:data,
                    root:type
                };
                var thtml=template(html,datas);
                  $("#zulist .bot").html(thtml);
                    }else{
                   $("#zulist .bot").html("<div>暂无匹配数据</div>");     
                    }  

            
        },
        error:function (XMLHttpRequest, textStatus, errorThrown) {      
        }
     });
        };
   var imgzy=function(img){
        var src="";
       if(!!img){
        if(img.indexOf("|")!=-1){
            src=img.split("|")[0];
        }else{
            src=img;
        }
        }
        return src;
    }
    ajax_("shoucangmine");
    </script>
</body>

</html>